package com.prd.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>
 * 客户-备注总表
 * </p>
 *
 * @author o1
 * @since 2023-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("customer_remark")
public class CustomerRemarkDO implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 编号:客户编号，客人编号，项目id均用此字段
     */
    private String no;

    /**
     * 备注/文字
     */
    private String remark;

    /**
     * 录音文件url
     */
    private String recordUrl;

    /**
     * 文档url
     */
    private String fileUrl;

    /**
     * 图片url
     */
    private String imgUrl;

    /**
     * 创建时间
     */
    private Date createDatetime;

    /**
     * 备注类型
     */
    private Integer type;

    @Override
    public int hashCode() {
        return Objects.hashCode(id) & Integer.MAX_VALUE;
    }
}
